package com.wb.mianxiangduixiang;

/**
 * @author 黄衡熙
 * @version 1.0
 * @date 2025年07月18日10:31
 */
public class Student1 {
    public static void main(String[] args) {
        Student3 s1 = new Student3();
        s1.name="花东煜";
        s1.age=16;
        s1.gender='男';
        s1.major="计算机科学与技术";
        s1.classNo="计科三班";
        System.out.println("姓名:"+s1.name+",年龄:"+s1.age
                +",性别:"+s1.gender+",专业:"+s1.major+",班级:"+s1.classNo);
        s1.show();

    }

}
class Student3{
    String name;
    int age;
    char gender;
    String major;
    String  classNo;
    public void show(){
        System.out.println("大家好我叫"+name+"今年"+age+"岁是一个阳光"+gender+"孩在"+major+"专业的"+classNo);
    }
}